package com.common;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration(exclude= {/*
								   HibernateJpaAutoConfiguration.class,
								   SecurityAutoConfiguration.class,*/
        DataSourceAutoConfiguration.class,
        JpaRepositoriesAutoConfiguration.class //禁止springboot自动加载持久化bean
})


@ComponentScan
@SpringBootApplication
public class TaskServerApplication  {
    private static final Logger LOGGER = LoggerFactory.getLogger(TaskServerApplication .class) ;
    public static void main(String[] args) {
        SpringApplication.run(TaskServerApplication .class, args);
        LOGGER.info("Task Server 启动成功！");
    }
    
}
